# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-sys-syscall
pkgver=0.25
pkgrel=9
pkgdesc="Perl/CPAN Module Sys::Syscall"
arch=("any")
url="https://search.cpan.org/dist/Sys-Syscall/"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/Sys-Syscall-$pkgver.tar.gz")
depends=("perl")
md5sums=('720a9ec5f67f867814a9011b2a725763')

build() {
  cd "$srcdir"/Sys-Syscall-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Sys-Syscall-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
